const routes = [
    {
        path: '/',
        name: 'index',
        title: '首页',
        component: () => import('@/components/login.vue'), //.vue不能省略
    },
    {
        path: '/source/user/getotp',
        name: 'getotp',
        title: '首页',
        component: () => import('@/components/getotp.vue'), //.vue不能省略
    },
    {
        path: '/source/user/register',
        name: 'register',
        title: '注册',
        component: () => import('@/components/register.vue'),
    },
    {
        path: '/source/user/login',
        name: 'login',
        title: '登录',
        component: () => import('@/components/login.vue'),
    },
    {
        path: '/source/item/create',
        name: 'item_create',
        title: '商品创建',
        component: () => import('@/components/createItem.vue'),
    },
    {
        path: '/source/item/list',
        name: 'item_list',
        title: '商品列表',
        component: () => import('@/components/listItem.vue'),
    },
    {
        path: '/source/item/get/:id',
        name: 'item_detail',
        title: '商品详情',
        component: () => import('@/components/detailItem.vue'),
    },
]
export default routes
